<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            perspective: 500px;
            
        }

        img {
            display: block;
            margin: 0 auto;
            animation: move 2s infinite;
            transform-origin: left bottom;

        }

        @keyframes move {
            0% {}

            100% {
                transform: rotateY(180deg);
            }
        }
    </style>
</head>

<body>
    <img src="./img/pig.jpg" alt="">
</body>

</html>